//package hong;
//
//import com.sun.prism.paint.Color;
//import javafx.scene.control.ProgressIndicator;
//import javafx.scene.image.Image;
//import javafx.scene.image.ImageView;
//import javafx.scene.layout.Pane;
//import javafx.scene.shape.Circle;
//import javafx.scene.text.Text;
//
//import java.io.FileInputStream;
//import java.io.FileNotFoundException;
//
//public class TimePanel extends Pane {
//
//    /**倒计时进度条*/
//    private ProgressIndicator timeProgress;
//    /**遮罩*/
//    private Circle bgCircle;
//    /**时间*/
//    private Text timeText;
//    /**重置*/
//    private ImageView resetImg;
//    /**开始、停止*/
//    private ImageView startImg;
//    /**删除*/
//    private ImageView delImg;
//
//    private Image imgRun,imgStop;
//    private int width = 500,height=500;
//
//    public TimePanel() {
//        timeProgress = new ProgressIndicator();
//        timeProgress.setMaxWidth(width);
//        timeProgress.setPrefWidth(width);
//        timeProgress.setMaxHeight(height);
//        timeProgress.setPrefHeight(height);
//        timeProgress.setProgress(0.3);
//        timeProgress.setStyle("-fx-progress-color:rgb(238,118,253)");
//        bgCircle = new Circle();
//        bgCircle.setRadius(230);
//        bgCircle.setCenterX(250);
//        bgCircle.setCenterY(240);
////        bgCircle.setFill(Color.GREEN);
//        bgCircle.setStyle("-fx-fill:#333333");
//        timeText = new Text();
//        timeText.setText("03:06:09");
//        timeText.setStyle("-fx-font-size:60");
//        try {
//            Image image;
//            image = new Image(new FileInputStream("reset/.png"));
//            resetImg = new ImageView(image);
//            imgRun = new Image(new FileInputStream("run/.png"));
//            imgStop = new Image(new FileInputStream("stop/.png"));
//            startImg = new ImageView(imgRun);
//            image = new Image(new FileInputStream("delete/.png"));
//            delImg = new ImageView(image);
//        } catch (FileNotFoundException e) {
//            e.printStackTrace();
//        }
//        getChildren().addAll(timeProgress,bgCircle,timeText,resetImg,startImg,delImg);
//    }
//}
